import java.util.Scanner;

public class Main {
    public static void menu(){
        System.out.println("请选择：");
        System.out.println("1.存钱");
        System.out.println("2.取钱");
    }
    public static void main(String[] args) {
        BankAccount ba=new BankAccount("123456","123456",5000);
        Scanner ok=new Scanner(System.in);
        while(true){
            menu();
            int choice=ok.nextInt();
            switch (choice){
                case 1:
                while(true){
                    System.out.println("请输入你要存的金额");
                    int I=ok.nextInt();
                    ba.setAmount(I);
                    System.out.println("是否继续存款 1.退出   2.继续存");
                    I=ok.nextInt();
                    if (I==1)
                        break;
                }
                case 2:
                    //能扩张的业务太多了。。。。
            }System.out.println("是否继续办业务 1.退出   2.继续");
            int I=ok.nextInt();
            I=ok.nextInt();
            if (I==1)
                break;
        }

    }

    //寄快递
    public static void main2(String[] args) {
        Scanner sc=new Scanner(System.in);
        int choice=sc.nextInt();//输入地区编号
        int weight=sc.nextInt();//输入物重
        switch (choice){
            case 1:
                if (weight<=2)
                    System.out.println(12);
                else
                    System.out.println(12+(weight-2)*2);
                break;
            case 2:
                if (weight<=2)
                    System.out.println(13);
                else
                    System.out.println(13+(weight-2)*3);
                break;
            case 3:
                if (weight<=2)
                    System.out.println(14);
                else
                    System.out.println(14+(weight-2)*3);
                break;
        }
    }

    //买鸡
    public static void main1(String[] args) {
        int x=0;
        int y=0;
        int z=0;
        String s="";
        for ( x = 0; x <30 ; x++) {
            for (y=0;y<15;y++){
                for (z=0;z<30;z++){
                    if (x+5*y+3*z==100&&3*x+y+z==100)
                        System.out.println("方案：" + "小鸡数" + 3 * x + " " + "母鸡数" + y + " " + "公鸡数" + z + " ");
                }
            }
        }
    }
}